package com.xm.queue.task2;

import java.util.concurrent.atomic.AtomicInteger;

public abstract class BaseTask implements ITask{
    private final AtomicInteger retryCount = new AtomicInteger(0);

    @Override
    public int getRetryCount() {
        return retryCount.intValue();
    }

    @Override
    public void incrementRetryCount() {
        retryCount.incrementAndGet();
    }
}
